package com.ostrich.cloud.ostrichGoodsSercice.model.param;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CreateGoodsParam {
    @NotNull
    private Integer typeId;
    @NotBlank
    private String goodsName;
    @NotBlank
    private String goodsImg;
    @NotNull
    private BigDecimal goodsPrice;
    @NotBlank
    private String goodsLocation;
    @NotNull
    private Integer goodsStock;
    @NotBlank
    private String unitName;

}
